<div class="userContainer">

    <div class="leftInformation">
        <div class="userInfo">
            <dd>
            <dt>
                Никнейм: <b><?= $this->user->getNickName() ?></b>
            </dt>
            <dt>
                С нами с: <b><?= $this->ruDateFormat($this->user->getCreatedAt()) ?></b>
            </dt>
            <dt>
                deePower: <b><?= $this->user->getUserRank() ?></b>
            </dt>
            <dt>
                <? if (in_array($this->currentUser()->getUserId(), array('1', '2'))): ?>
                    <a href="./recreatehistory">Пересчитать ВСЮ историю</a>
                <? endif; ?>

            </dt>

            </dd>
        </div>	
        <div class="pm-6 rad-5" style="border: 2px solid silver; background-color: #444; color: white; font-size: 12px;">
            <span>Публикации</span>
            <dd>
                <? foreach ($this->usersPosts as $onePost): ?>
                <dt>
                    <?= $onePost->getMessageId() ?>: <a href="./message/<?= $onePost->getMessageId() ?>"><?= $onePost->getTitle() ?></a>
                    <span><?= $this->ruDateFormat($onePost->getCreatedAt()) ?></span>
                </dt>
            <? endforeach; ?>
            </dd>        

        </div>
    </div>


    <div class="rightInformation">
        <span>Комментарии</span>
        <dd>
            <? foreach ($this->usersComments as $onePost): ?>
            <dt>
                <?= $this->ruDateFormat($onePost->getCreatedAt()) ?>: 
    					к публикации <a href="./message/<?= $onePost->getParentId() ?>"><?= $this->allMessagesTitles[$onePost->getParentId()] ?></a><br />
                <span class="c-gray pm-2"><?= $onePost->getText() ?></span>
            </dt>
        <? endforeach; ?>
        </dd>		

    </div>
</div>




